home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8948 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: crl.crl.com!not-for-mail
  2. From: bobfry@crl.com (Robert Fry)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Question: Hardware key
  5. Date: 7 Mar 1996 09:49:18 -0800
  6. Organization: CRL Dialup Internet Access
  7. Message-ID: <4hn7iu$qgp@crl.crl.com>
  8. References: <4hlm6h$rok@usenetw1.news.prodigy.com>
  9. NNTP-Posting-Host: crl.com
  10.  
  11. CJMQ00C@prodigy.com (George Zema) writes:
  12.  
  13. >Is it possible to write a patch that would prevent a program on start up 
  14. >from going out to look for a hardware key attached to LPT1?  If so, what 
  15. >would a person look for in the code?  Can this be done via Debug?  I'm 
  16. >dealing with an older program, bought and paid for, that's long out of 
  17. >circulation so there's no support available and it requires this stupid 
  18. >hardware key.  I'd get rid of the program if I didn't like it so much.  
  19.  
  20. >I'm not conversant in C at all but can muddle my way through Debug.  I do 
  21. >have access to a C compiler and am willing to jump in with both feet so I 
  22. >can learn something.
  23.  
  24. Though this isn't really a C-specific problem, it can /theoreticaly/ be 
  25. done. I would expect it to be neither easy nor worth it. A better use of 
  26. your time would be in earning enough money to buy a replacement program 
  27. (even if it cost several thousand dollars). It's that hard, if it was 
  28. written corrrectly (i.e. the way the hardware key manufacturers suggest).
  29.  
  30. If you just have to do it, however, you need to find code that accesses 
  31. the Parallel port (assuming you're on a DOS machine). Under DOS, you'll 
  32. see some INP and OUTP instructions (at the assembler level). I don't know 
  33. about the details for the other Microsoft OSs, offhand -- you'll be able 
  34. to learn more about that if you check a MS-DOS newsgroup.
  35.  
  36.   Bob
  37.